<?php

namespace App\Http\Controllers;
use DB;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class SellController extends BaseController
{
    public function index(){
    	header("Content-type:text/html;charset=utf-8");
    	$brand=DB::table('brand')->get();
    	return view("sell",['brand'=>$brand]);
    }

    //卖车信息提交
    public function sell_car(){
    	$city=$_GET['city'];
    	$brand=$_GET['brand'];
    	$tel=$_GET['tel'];
    	$sell=DB::table('master')->insert(array('city',$city,'brand',$brand,'tel',$tel));
    	//print_R($sell);
    	
    }
}
